<template>
    <ul>
        <Listitem v-for="item in searchResult" :key="item.id" :item="item" @click.native="$emit('playMusic',item.id)"></Listitem>
    </ul>
</template>

<script>
import Listitem from '../components/Listitem'
export default {
    name: 'SearchResult',
    props: {
        searchResult: {
            type: Array,
            dafault() {
                return [];
            }
        }
    },
    components: {
        Listitem
    },
}
</script>

<style lang="less" scoped>

</style>
